package com.lyf.viewapp.downfile.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by lyf on 2018/8/23 11:57
 *
 * @author lyf
 * desc：
 */
public abstract class BaseSampleActivity extends AppCompatActivity {

    String title;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        title = getString(titleRes());
    }
    
    @Override
    protected void onTitleChanged(CharSequence title, int color) {
        super.onTitleChanged(this.title, color);
    }

    @StringRes
    protected abstract int titleRes();

}
